package com.simou.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class ShoppingCart {

  private Long id;
  private String name;
  private String image;
  private Long userId;
  private Long dishId;
  private Long setmealId;
  private String dishFlavor;
  private int number;
  private BigDecimal amount;
  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getImage() {
    return image;
  }

  public void setImage(String image) {
    this.image = image;
  }


  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }


  public Long getDishId() {
    return dishId;
  }

  public void setDishId(Long dishId) {
    this.dishId = dishId;
  }


  public Long getSetmealId() {
    return setmealId;
  }

  public void setSetmealId(Long setmealId) {
    this.setmealId = setmealId;
  }


  public String getDishFlavor() {
    return dishFlavor;
  }

  public void setDishFlavor(String dishFlavor) {
    this.dishFlavor = dishFlavor;
  }


  public int getNumber() {
    return number;
  }

  public void setNumber(int number) {
    this.number = number;
  }


  public BigDecimal getAmount() {
    return amount;
  }

  public void setAmount(BigDecimal amount) {
    this.amount = amount;
  }


  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }

  @Override
  public String toString() {
    return "ShoppingCart{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", image='" + image + '\'' +
            ", userId=" + userId +
            ", dishId=" + dishId +
            ", setmealId=" + setmealId +
            ", dishFlavor='" + dishFlavor + '\'' +
            ", number=" + number +
            ", amount=" + amount +
            ", createTime=" + createTime +
            '}';
  }
}
